function [ cdir ] = getCrackDir( pdir, vnorm )
%GETCRACKDIR Summary of this function goes here
%   Detailed explanation goes here

pdir3 = [pdir(1); pdir(2); 0];
vnorm3 = [vnorm(1); vnorm(2); 0];

up3 = cross(vnorm3, pdir3);
cdir3 = cross(up3, pdir3);

check = dot(cdir3, vnorm3);

if check > 0
   cdir3 = -1 * cdir3; 
end

cdir = [cdir3(1); cdir3(2)];

end

